﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class aspx_teacher_one : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (this.Request.QueryString["id"] == null)
            {
                Response.Redirect("~/");
            }
            try
            {
                int id = int.Parse(this.Request.QueryString["id"]);
                using (ds_名师讲堂TableAdapters.tb_名师风采TableAdapter da = new ds_名师讲堂TableAdapters.tb_名师风采TableAdapter())
                {
                    this.rpt_teacher.DataSource = da.GetDataBy名师ID(id);
                }
                this.rpt_teacher.DataBind();
            }
            catch (Exception)
            {
                Response.Redirect("~/");
            }
        }
    }
}